//
//  UIWindow+Extension.m
//  CRM
//
//  Created by Sam on 16/10/6.
//  Copyright © 2016年 AP-EC. All rights reserved.
//

#import "UIWindow+Extension.h"
#import "MainViewController.h"//主页面
#import "SamNavigationController.h"


@implementation UIWindow (Extension)

-(void)switchRootViewController{
    
    MainViewController *vc = [[MainViewController alloc]init];
    SamNavigationController *mainNVC = [[SamNavigationController alloc]initWithRootViewController:vc];
    
    
    self.rootViewController = mainNVC;

    
}

@end
